package com.eveinfo.display;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.ListView;

import com.eveinfo.EveInfo;
import com.eveinfo.R;

public class CharacterSelectionView extends Activity {

	private ListView listView;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		
		listView = new ListView(this);
		new CharacterSelectionAdapter(this, R.layout.character, listView,  EveInfo.getData().getCharacterDatas());
		
		setContentView(listView);
	}

	@Override
	protected void onResume() {
		super.onResume();
		EveInfo.getPictureBaseHelper().deleteCache();
	}

}